package jjs.com.bmi;

import org.junit.Before;
import org.junit.After;
//import org.junit.Assert;
import static org.junit.Assert.*;
import org.junit.Test;
import testYear.Year;


public class YearTest01 {
    public static void main(String[] args) {
        System.out.println("YearTest01");
    }

    @Before
    public void setUp() throws Exception {
        System.out.println("Before Test 01");
    }

    @After
    public void tearDown() throws Exception {
        System.out.println("After Test 01");
    }

    @Test
    public void testIsLeap1() {
        Year y = new Year(2021);
        assertEquals("平年", y.isLeap());
    }


    @Test
    public void testIsLeap2() {
        Year y = new Year(2012);
        assertEquals("闰年", y.isLeap());
    }


    @Test
    public void testIsLeap3() {
        Year y = new Year(2100);
        assertEquals("平年", y.isLeap());
    }


    @Test
    public void testIsLeap4() {
        Year y = new Year(2000);
        assertEquals("闰年", y.isLeap());
    }

}
